package com.edu.buservice.biz.model;

import com.edu.buservice.biz.enums.DomainEnum;
import com.edu.buservice.biz.enums.LoginTypeEnum;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.Data;

import java.util.Map;

/**
 * @program: KQAIA
 * @description: 请求上下文
 * @author: 无恙
 * @create: 2025-03-07 22:05
 **/

@Data
public class RequestContext {

	// 请求上下文
	private HttpServletRequest request;

	// 响应上下文
	private HttpServletResponse response;

	// 登录类型
	private LoginTypeEnum loginType;

	// 重定向地址
	private String redirect;

	// 请求参数
	private Map<String, String> params;

	//请求Ip
	private String ip;

	//用户ID
	private String userId;

	//租户ID
	private String tenantId;

	//用户手机号
	private String phone;

	//资源域
	private DomainEnum domain;


}
